<extend file="resource/admin/common/common">
    <block name="right_center">
        <!--右侧主题部分 start-->
        <div class="col-xs-12 col-sm-9 col-lg-10">
            <ol class="breadcrumb" style="background-color: #f9f9f9;padding:8px 0;margin-bottom:10px;">
                <li>
                    <a href=""><i class="fa fa-cogs"></i>
                        分类管理</a>
                </li>
                <li class="active">
                    <a href="">分类展示</a>
                </li>
            </ol>
            <ul class="nav nav-tabs" role="tablist">
                <li class="active"><a href="">分类管理</a></li>
                <li><a href="{{u('admin.category.add')}}">添加分类</a></li>
            </ul>
            <form action="" method="post">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <table class="table table-hover">
                            <thead>
                            <tr>
                                <th width="80">编号</th>
                                <th>分类名称</th>
                                <th width="200">操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <foreach from="$data" key="$key" value="$v">
                            <tr>
                                <td>{{$v['cid']}}</td>
                                <td>{{$v['_cname']}}</td>
                                <td>
                                    <div class="btn-group">
                                        <button data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle">操作 <span class="caret"></span></button>
                                        <ul class="dropdown-menu dropdown-menu-right">
                                            <li><a href="{{u('admin.category.sonadd',['cid'=>$v['cid']])}}">添加子类</a></li>
                                            <li><a href="{{u('admin.category.edit',['cid'=>$v['cid']])}}">编辑</a></li>
                                            <li class="divider"></li>
                                            <li><a href="{{u('admin.category.del',['cid'=>$v['cid']])}}">删除</a></li>
                                        </ul>
                                    </div>
                                </td>
                            </tr>
                            </foreach>
                            </tbody>
                        </table>
                    </div>
                </div>
            </form>
            <div class="pagination pagination-sm pull-right">
            </div>
        </div>
        <!--右侧主题部分 end-->
        </div>
        </div>
        <div class="master-footer" style="margin-top: 150px">
            <a href="http://www.houdunwang.com">高端培训</a>
            <a href="http://www.hdphp.com">开源框架</a>
            <a href="http://bbs.houdunwang.com">后盾论坛</a>
            <br>
            Powered by hdphp v2.0 © 2016-2022 www.hdphp.com
        </div>
        </body>
        </html>
</extend>
    </block>



